package Com.amit.Exception;

public class Lab14 {
public static void validate(int age)
{
	if(age<18)
	{
		throw new ArithmeticException();
	}
	else
	{
		System.out.println("Welcome to vote");
	}
}
	
	public static void main(String[] args) {
		
		validate(101);
		System.out.println("Rest of code");
		
	}

}
